package com.nb82.bean.weather.codeEnum;

import android.net.NetworkInfo.DetailedState;

public enum WindDirectionEnum {
	NoWind(0,"无持续风向","NoWind"),
	Northeast(1,"东北风","Northeast"),
	East(2,"东风","East"),
	Southeast(3,"东南风","Southeast"),
	South(4,"南风","South"),
	Southwest(5,"西南风","Southwest"),
	West(6,"西风","West"),
	Northwest(7,"西北风","Northwest"),
	North(8,"北风","North"),
	WhirlWind(9,"旋转风","Whirl wind");
	
	private final String zn,en;
	private final int num;
	WindDirectionEnum(int num,String zn, String en){
		this.en = en;
		this.zn = zn;
		this.num = num;
	}
	public String getZn() {
		return zn;
	}
	public String getEn() {
		return en;
	}
	public int getNum() {
		return num;
	}
	public static WindDirectionEnum getWindDirectionEnum(int id){
		WindDirectionEnum directionEnum = null;
		switch (id) {
		case 0:
			directionEnum = WindDirectionEnum.NoWind ;
			break;
		case 1:
			directionEnum = WindDirectionEnum.Northeast ;
			break;
		case 2:
			directionEnum = WindDirectionEnum.East ;
			break;
		case 3:
			directionEnum = WindDirectionEnum.Southeast ;
			break;
		case 4:
			directionEnum = WindDirectionEnum.South ;
			break;
		case 5:
			directionEnum = WindDirectionEnum.Southwest ;
			break;
		case 6:
			directionEnum = WindDirectionEnum.West ;
			break;
		case 7:
			directionEnum = WindDirectionEnum.Northwest ;
			break;
		case 8:
			directionEnum = WindDirectionEnum.North ;
			break;
		case 9:
			directionEnum = WindDirectionEnum.WhirlWind ;
			break;
		default:
			break;
		}
		return directionEnum;
	}
}
